import request from "@/utils/request"



//列表查询
export const queryAllApi = ()=>{
   return request.get('/depts')
}



// /m1/6630752-6338346-default
//添加部门
export const addDeptApi = (data) => request.post('/depts', data)

//查询部门回显
export const queryByIdApi = (id) => request.get(`/depts/${id}`)


//修改部门数据
export const updateByIdApi=(data)=>request.put(`/depts`,data)

export const deleteDeptApi= (id) => request.delete(`/depts?id=${id}`)
